package cn.enited.devtools.apiaggregator.anno;

import cn.enited.devtools.apiaggregator.validator.ValidateBizId;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

@Documented
@Constraint(validatedBy = ValidateBizId.class)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.ANNOTATION_TYPE, ElementType.CONSTRUCTOR, ElementType.PARAMETER, ElementType.TYPE_USE})
public @interface IsBizId {

    String message() default "id错误";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
